home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
guest-0.000
/
guest-0
/
guest-0.2
/
README
< prev
next >
Wrap
Text File
|
1995-05-08
|
3KB
|
57 lines
NOTE: I don't like the name `guest', but I have been unable to come up with
anything else. Any takers? Also, the version number (0.1) is low because I
have been the only person to test it, not because it's very buggy; as I get
feedback the number is likely to be bumped up.
What is `guest'?
Guest is a Unix/ncurses menu interface. I originally wrote
it when I tried to make a shell script to add some security to my
guest account. I found that shell scripts are completely impossible to
write in a decent way and just plain ugly to look at. So I had my hand
at writing my own. Besides, I wanted to try out my gnu-ELF build
environment on something other than one module programs.
How do I write menus?
Guest menus are very simple to write and read. They are laid out in a
very logical way much like the menus to `fvwm' (1.xx anyway).
Unfortunately, at this point the parser is a bit crude and is a
stickler for things like case, but it has nice verbose output so you
can trace down the problem in the menu file really easily.
A menu starts with the word `Menu' followed by the menu name (not the
title), and ends with the word `EndMenu'. Each menu consists of a
variety of tokens and there respective arguments, tokens and arguments
are split by the character `:'. At this point there is no escape
character, so you cannot use `:' in menu text. Every token has at
least one argument, which is what will appear on the screen.
The tokens currently recognized by guest are as follows:
* `Title': denotes the title of the menu (you can have as many
as you like).
Title:Main Menu:
* `Exec': denotes an executable item and has two arguments,
the second is the command line to execute.
Exec:Read Mail:pine:
* `SubMenu': denotes a link to another menu and has two
arguments, the second is the name of the Menu to link to.
SubMenu:File Utilities:File-Util:
* `Exit': quits the current menu, if the current menu is the
first menu, you will be logged out.
Exit:Logout:
* `Nop': is for comments
Nop:This is a comment:
Putting it together:
Please see the file `test.menu' for a complete menu. Then try:
guest test.menu
HOW TO GET HELP:
Send all patches/advice/questions/flames to
`shmit@meathook.intac.com' I hope you find this software useful, and
please: hack away at the code, add new screen modules, take some items
off the TODO list. The only thing I ask is that you send me patches
(with comments) when you have done something.
Or just talk to a good shrink.